package com.ls.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author baomidou
 * @since 2021-11-01 16:39:33
 */
@Getter
@Setter
@ApiModel(value = "Employee对象", description = "员工表")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("员工ID,主键自增")
    @TableId(value = "emp_id", type = IdType.AUTO)
    private Integer empId;

    @ApiModelProperty("员工名称")
    private String empName;

    @ApiModelProperty("员工年龄")
    private Integer age;

    @ApiModelProperty("部门ID关联部门表主键")
    private Integer deptId;

    @ApiModelProperty("入职时间")
    private LocalDateTime hireDate;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("头像")
    private String portrait;

    @ApiModelProperty("简介")
    private String info;


    public static final String EMP_ID = "emp_id";

    public static final String EMP_NAME = "emp_name";

    public static final String AGE = "age";

    public static final String DEPT_ID = "dept_id";

    public static final String HIRE_DATE = "hire_date";

    public static final String UPDATE_TIME = "update_time";

    public static final String EMAIL = "email";

    public static final String PASSWORD = "password";

    public static final String PORTRAIT = "portrait";

    public static final String INFO = "info";

}
